module TouchesHelper
  def touch_type_column(record)
    Touch::TOUCH_TYPES[record.touch_type]
  end

  def touch_type_form_column(record, input_name)
    touch_types = Touch::TOUCH_TYPES.collect { |k,v| [v, k] }
    select :record, :touch_type, touch_types, :name => input_name
  end

  def security_level_form_column(record, input_name)
    security_levels = Touch::SECURITY_LEVELS.collect { |k,v| [v, k] }
    select :record, :security_level, security_levels, :name => input_name
  end
end
